package com.twu.biblioteca.ui;

import com.twu.biblioteca.model.Item;

import java.util.Iterator;
import java.util.List;

/**
 * Created by madhu on 27/4/14.
 */
public class BookView extends ItemView {

    public BookView() { }

    public void displayListOfBooksInStack(List<Item> booksInStack) {

        Iterator iterator = booksInStack.iterator();
        System.out.println("\nLIST OF BOOKS : \n");
        while(iterator.hasNext()) {
            Item item = (Item) iterator.next();
            System.out.println(item.getName());
        }
        System.out.println();

    }

}
